package com.inspur.gs.sbssdl.dzyhpgl.dzyhpbasedata.dzyhpbasedata.front.sbssdzhpwlxxtreelist_hlp.voactions;
import com.inspur.edp.bff.api.manager.context.QueryContext;
import com.inspur.edp.bff.spi.action.query.BeforeQueryAction;
import com.inspur.edp.cef.entity.condition.*;

import java.util.ArrayList;

public class queryBeforeVOAction extends BeforeQueryAction {

	public queryBeforeVOAction(QueryContext context){
		super(context);
	}
	@Override
	public void execute() {
		EntityFilter filter = this.getQueryContext().getFilter();
		ArrayList<FilterCondition> filterListOrg = filter.getFilterConditions();


		filterListOrg.forEach(i->{
			System.out.println(i.getLBracketCount() + "  " +   i.getFilterField() + " " + i.getCompare() + " " + i.getValue() + "   " + i.getRBracketCount() + " " + i.getRelation());
		});



//		ArrayList<FilterCondition> newFilterList = new ArrayList<>();
//
//		newFilterList.add(new FilterCondition(1, "lb_id_lbbh",ExpressCompareType.LikeStartWith, lbbh, 1,ExpressRelationType.And, ExpressValueType.Value));
//		newFilterList.addAll(filterListOrg);
//		filter.setFilterConditions(newFilterList);
	}
}
